Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to check for required reviews #370

Closed
wants to merge 3 commits into from

Conversation

jfrost-mo
Copy link
Member

@jfrost-mo jfrost-mo commented Jan 18, 2024

Fixes #366.

  • Need to test that it passes after enough approving reviews.
  • Is 2 reviews the right number? 3 would cover science, technical, and portability, but who can do a technical review for my own PRs?

@jfrost-mo jfrost-mo added the cleanup Non-functional improvement label Jan 18, 2024
@jfrost-mo jfrost-mo self-assigned this Jan 18, 2024
Copy link
Contributor

github-actions bot commented Jan 18, 2024

Coverage

jfrost-mo

This comment was marked as outdated.

@jfrost-mo jfrost-mo added full_review Requires a technical, scientific, and portability review bug Something isn't working and removed full_review Requires a technical, scientific, and portability review bug Something isn't working labels Jan 18, 2024
@jfrost-mo jfrost-mo marked this pull request as ready for review January 18, 2024 16:21
jfrost-mo

This comment was marked as outdated.

@jfrost-mo jfrost-mo added full_review Requires a technical, scientific, and portability review bug Something isn't working and removed bug Something isn't working full_review Requires a technical, scientific, and portability review labels Jan 18, 2024
@jfrost-mo jfrost-mo added bug Something isn't working and removed bug Something isn't working labels Jan 18, 2024
jfrost-mo

This comment was marked as outdated.

@jfrost-mo jfrost-mo added full_review Requires a technical, scientific, and portability review and removed full_review Requires a technical, scientific, and portability review labels Jan 18, 2024
jfrost-mo

This comment was marked as outdated.

jfrost-mo

This comment was marked as outdated.

@jfrost-mo jfrost-mo removed the full_review Requires a technical, scientific, and portability review label Jan 18, 2024
jfrost-mo

This comment was marked as outdated.

@jfrost-mo jfrost-mo added the full_review Requires a technical, scientific, and portability review label Jan 18, 2024
jfrost-mo

This comment was marked as outdated.

@jfrost-mo jfrost-mo added full_review Requires a technical, scientific, and portability review and removed full_review Requires a technical, scientific, and portability review labels Jan 25, 2024
Add review checking script

Simplify with workflow event

Remove condition for approval

Also run when unlabeled

Colourise output
The run on pull_request is treated as a seperate check and isn't
updated when a review is actually made.
@jfrost-mo
Copy link
Member Author

jfrost-mo commented Jan 30, 2024

The workflow might need to run on pull_request, as currently there are a lot of circumstances where it doesn't run. At least it terminates early, so it shouldn't slow things down over running only on a review being submitted.

The issue with running on pull_request is that it won't rerun after the reviews, so it would still stay failed after the needed reviews had been gathered...

@Sylviabohnenstengel
Copy link
Contributor

I think for most changes 2 reviews should be sufficient as 3 reviews but slow process down too much and stop users from adotping the tool if overhead is too much.

@jfrost-mo
Copy link
Member Author

I'm tempted to drop this PR as it has a few edge cases it can break on, which fixing would make it significantly more complicated. Instead we should just go for an honour system, and note at the top of the PR if it requires multiple reviews.

@jfrost-mo jfrost-mo closed this Mar 4, 2024
@jfrost-mo jfrost-mo deleted the triplicate_review_required branch March 4, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Non-functional improvement full_review Requires a technical, scientific, and portability review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add some tooling for multi-person reviews
2 participants